import yagmail

def send_report(subject, message, sender=None, receiver=None, files=None):
    if sender is None:
        sender = {"user": 'tianzhiguanlizixun@163.com', "password": 'VMUXBIXRSTMBJYDW', "host": 'smtp.163.com'}
    if receiver is None:
        receiver = ['zjuvincent@163.com']
    yag = yagmail.SMTP(sender['user'], sender['password'], host=sender['host'])
    yag.send(to=receiver, subject=subject, contents=message, attachments=files)
    print('周报邮件发送成功')
